import request from '@/utils/request'

export default {
    getList(params) {
        return request.get('/menus', { params })
    },
    create(data) {
        return request.post('/menus', data)
    },
    update(id, data) {
        return request.put(`/menus/${id}`, data)
    },
    delete(id) {
        return request.delete(`/menus/${id}`)
    }
}